FROM java:8-jdk

MAINTAINER tiangao tgshi@ctrip.com

COPY vertx-app.jar /app/start.jar

RUN echo "Asia/Shanghai" > /etc/timezone

WORKDIR /app

ENV JAVA_OPTS=" -Xmx3G \
-Dcom.sun.management.jmxremote=true \
-Dcom.sun.management.jmxremote.port=51077 \
-Dcom.sun.management.jmxremote.rmi.port=51077 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.local.only=false \
-Djava.rmi.server.hostname=10.32.34.31"

EXPOSE 8888
EXPOSE 51077

ENTRYPOINT java ${JAVA_OPTS} -jar /app/start.jar
